#!/usr/bin/python3
# -*- coding: utf8 -*-
# Date   : 2021/02/12
# Author : Kwan
# Email  : allenxian@live.com
# Blog   : https://my.oschina.net/u/4173440

from flask import Blueprint, render_template, redirect, url_for
from flask_login import login_required


# 收费功能
charge = Blueprint(name='charge', import_name='flasky', url_prefix='/charge', template_folder='views/templates')


@charge.route('/')
@login_required
def default():
    """
    收费功能
    """
    return redirect(url_for('charge.view'))


@charge.route('/view')
@login_required
def view():
    """
    收费界面
    """
    return render_template('charge/view.html')


@charge.route('/acounts')
@login_required
def acounts():
    """
    转更界面
    """
    return render_template('charge/acounts.html')

